package com.cjkj.system.mapper;

import java.util.List;
import com.cjkj.system.domain.TWarnSettingHospital;
import org.apache.ibatis.annotations.Param;

/**
 * 医院预警值设置Mapper接口
 * 
 * @author cjkj
 * @date 2025-05-30
 */
public interface TWarnSettingHospitalMapper
{
    /**
     * 查询预警设置
     * @param hospitalId 医院ID
     * @param deptId 科室ID
     */
    List<TWarnSettingHospital> selectHospitalWarnSet(@Param("hospitalId") String hospitalId,
                                               @Param("deptId") String deptId);

    /**
     * 获取系统公共预警设置
     */
    List<TWarnSettingHospital> selectPublicWarnSet();

    /**
     * 查询医院预警值设置列表
     * 
     * @param tWarnSettingHospital 医院预警值设置
     * @return 医院预警值设置集合
     */
    List<TWarnSettingHospital> selectTWarnSettingHospitalList(TWarnSettingHospital tWarnSettingHospital);

    /**
     * 新增医院预警值设置
     * 
     * @param tWarnSettingHospital 医院预警值设置
     * @return 结果
     */
    int insertTWarnSettingHospital(TWarnSettingHospital tWarnSettingHospital);
    int batchInsert(@Param("list") List<TWarnSettingHospital> tWarnSettingHospital,
                    @Param("hospitalId") String hospitalId,
                    @Param("deptId") String deptId);

    /**
     * 修改医院预警值设置
     * 
     * @param tWarnSettingHospital 医院预警值设置
     * @return 结果
     */
    int updateTWarnSettingHospital(TWarnSettingHospital tWarnSettingHospital);

    /**
     * 删除科室的预警值设置
     */
    int deleteTWarnSets(@Param("hospitalId") String hospitalId,
                        @Param("deptId") String deptId);

}
